//生成四位数的验证码
function generateCode(){
    let code = ''
    for (let i = 0; i <4; i++) {
        code+=Math.floor(Math.random()*10)
    }
    return code
}

module.exports = {generateCode}